// 自动生成模板UmsMemberLoginLog
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// umsMemberLoginLog表 结构体  UmsMemberLoginLog
type UmsMemberLoginLog struct {
	Id         *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                   //id
	MemberId   *int       `json:"memberId" form:"memberId" gorm:"comment:member_id;column:member_id;size:19;"`    //member_id
	CreateTime *time.Time `json:"createTime" form:"createTime" gorm:"comment:创建时间;column:create_time;"`           //创建时间
	Ip         *string    `json:"ip" form:"ip" gorm:"comment:ip;column:ip;size:64;"`                              //ip
	City       *string    `json:"city" form:"city" gorm:"comment:city;column:city;size:64;"`                      //city
	LoginType  *bool      `json:"loginType" form:"loginType" gorm:"comment:登录类型[1-web，2-app];column:login_type;"` //登录类型[1-web，2-app]
}

// TableName umsMemberLoginLog表 UmsMemberLoginLog自定义表名 ums_member_login_log
func (UmsMemberLoginLog) TableName() string {
	return "ums_member_login_log"
}

type UmsMemberLoginLogRepo interface {
}

type UmsMemberLoginLogUsecase struct {
	repo UmsMemberLoginLogRepo
	log  *log.Helper
}

func NewUmsMemberLoginLogUsecase(repo GreeterRepo, logger log.Logger) *UmsMemberLoginLogUsecase {
	return &UmsMemberLoginLogUsecase{repo: repo, log: log.NewHelper(logger)}
}
